package com.itheima.reggie.service.impl;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.DTO.DishDto;
import com.itheima.reggie.entity.Dish;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;



public interface DishService extends IService<Dish> {
    //新增菜品，同时插入菜品对应的口味数据，需要操作两张表，dish dishflavor
    public void saveWithFlavor(DishDto dishDto);
    //根据id查询菜品和口味信息
    public DishDto getByIdwithFlavor(Long id);

    void updateWithFlavor(DishDto dishDto);
}
